package com.njlime.cms.repository.sys;

import com.njlime.cms.entities.InformationComment;
import com.njlime.core.helper.PageBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by Dean on 2017-7-27.
 */
public interface InformationCommentDao extends JpaRepository<InformationComment, Integer>,JpaSpecificationExecutor<InformationComment> {
    int del(int id);
    PageBean list(PageBean pageBean, InformationComment comment);
    int like(int id);
    int top(int id);
    int reply(int id, String reply,Integer userId);
    void auditComment(int id);

}
